<?php
class FeedsController extends AppController {

    var $name = 'Feeds';

    var $uses = array("Category" , "Feed");

    var $helpers = array("Tree");

    var $components = array("Simplepie");
    
    /**
     * In diesem Controller wird immer die linke Nvaigations erstellt und mit gerendert
     */
    function beforeRender () {
        $this->getTreeList();
    }

    function index () {

    }
    

    function read ($id) {

        $site   = $this->Feed->findById($id);
        $url    = $site['Feed']['url'];
        
        $this->set('items', $this->Simplepie->feed($url));
    }
    function cache() {
    	$this->Simplepie->cachedImaged();
    }
    


}
?>